package com.meilai.project.controller.web.report.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @Author yxg
 * @Date 2023/2/23 16:31
 */
@Data
@ApiModel
public class WeekDetailVO2 {
    @ApiModelProperty("楼盘id")
    private String building_id;
    @ApiModelProperty("楼号")
    private String building_number;
    @ApiModelProperty("单元号")
    private String unit_number;
    @ApiModelProperty("楼层")
    private String floor;
    @ApiModelProperty("楼盘二级类型")
    private String building_second_type;
    @ApiModelProperty("媒体总数")
    private Integer media_total_count;
    @ApiModelProperty("在刊客户")
    private List<WeekDetailCustomerExt2> inPublish;
    @ApiModelProperty("待上刊客户")
    private List<WeekDetailCustomerExt2> waitPublish;

    public String groupKey() {
        return building_id + '-' + building_number + "-" + unit_number + "-" + floor;
    }

    public String groupKeyByBuilding() {
        return building_id + '-' + building_number;
    }

    public String groupKeyByUnit() {
        return building_id + '-' + building_number + "-" + unit_number;
    }
}
